package com.chefu.autoparts.service.impl;


import com.chefu.autoparts.mapper.AutoPartsMapper;
import com.chefu.autoparts.pojo.AutoParts;
import com.chefu.autoparts.service.AutoPartsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author goodgoodstudy
 * @since 2021-03-30
 */
@Service
public class AutoPartsServiceImpl extends ServiceImpl<AutoPartsMapper, AutoParts> implements AutoPartsService {

    @Autowired
    private AutoPartsMapper autoPartsMapper;


    @Override
    public AutoParts findParts(Long id) {
        AutoParts autoParts = autoPartsMapper.selectById(id);
        return autoParts;
    }
}
